package com.xxxx.mail;
import org.springframework.amqp.core.Queue;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.web.bind.annotation.CrossOrigin;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @Description 启动类
 * @Author shanxin
 * @Since 2021/6/7 17:20
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@CrossOrigin
public class MailApplication {
    public static void main(String[] args) {
        SpringApplication.run(MailApplication.class, args);
    }

    @Bean
    public Queue queue(){
        return new Queue("mail.queue");
    }
}
